﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace OrBitDataModule.CustomEventHandler
{
    public class SockeClientEventArgs
    {
        /// <summary>
        /// IP地址
        /// </summary>
        public string IP { get; }
        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string MachineNo { get; }

        public string Message { get; }
        /// <summary>
        /// Socket协议类型
        /// </summary>
        public ProtocolType ProtocolType { get; }
        public SockeClientEventArgs(string ip, int port, string machineNo, string message, ProtocolType protocolType)
        {
            IP = ip;
            Port = port;
            MachineNo = machineNo;
            ProtocolType = protocolType;
            this.Message = message;
        }
    }
}
